﻿<%@ Page Language="C#" MasterPageFile="~/Masters/Default.master" AutoEventWireup="true"
    CodeFile="ManageTasks.aspx.cs" Inherits="ManageTasks" Title="任务管理" %>

<%@ Register Assembly="ChinaCustoms.Qingdao.Workflow.Controls" Namespace="ChinaCustoms.Qingdao.Workflow.Controls"
    TagPrefix="tunynet" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">
    <h3 class="commonTitle">
        任务管理</h3>
    <fieldset id="commentform" class="common" style="width: 97%">
        <legend><span class="commonSubTitle" style="color: #555;">搜索</span> </legend>
        <table cellpadding="0" cellspacing="0">
            <tr>
                <td style="width: 70px; text-align: right">
                    任务名称：
                </td>
                <td>
                    <asp:TextBox CssClass="textBox" ID="TaskName" runat="server" Columns="12" />
                </td>
                <td style="width: 100px; text-align: right">
                    发起人用户名：
                </td>
                <td>
                    <asp:TextBox CssClass="textBox" ID="SponsorUserName" runat="server" Columns="10" />
                </td>
                <td style="width: 50px; text-align: right">
                    状态：
                </td>
                <td>
                    <asp:DropDownList runat="server" ID="StatusDropDownList" />
                </td>
                <td style="width: 70px; text-align: right">
                    创建时间：
                </td>
                <td>
                    <asp:DropDownList runat="server" ID="DateScopeDropDownList" />
                </td>
                <td style="width: 20px">
                </td>
                <td>
                    <asp:LinkButton CssClass="commonButton" ID="SearchButton" runat="server" Text="搜索"
                        OnClick="SearchButton_Click" />
                </td>
            </tr>
        </table>
    </fieldset>
    <div class="space1">
    </div>
    <asp:Repeater ID="TasksRepeater" runat="server">
        <HeaderTemplate>
            <table class="tableGrid" cellspacing="1" cellpadding="3" width="100%" border="0">
                <tr class="gridHeader">
                    <th style="width: 15%">
                        任务名称
                    </th>
                    <th style="width: 15%">
                        所属应用程序
                    </th>
                    <th style="width: 8%">
                        创建人
                    </th>
                    <th style="width: 15%">
                        创建部门
                    </th>
                    <th style="width: 8%">
                        创建时间
                    </th>
                    <th style="width: 12%">
                        正在执行的活动
                    </th>
                    <th style="width: 8%">
                        当前状态
                    </th>
                    <th style="width: auto">
                        操作
                    </th>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr class="gridItem">
                <td nowrap="nowrap">
                    <asp:HyperLink runat="server" ID="TaskName" Target="_blank" />
                </td>
                <td nowrap="nowrap">
                    <asp:Literal runat="server" ID="ApplicationName" />
                </td>
                <td nowrap="nowrap">
                    <asp:Literal runat="server" ID="SponsorDisplayName" />
                </td>
                <td nowrap="nowrap">
                    <asp:Literal runat="server" ID="SponsorOrganization" />
                </td>
                <td nowrap="nowrap">
                    <asp:Literal runat="server" ID="CreateDate" />
                </td>
                <td>
                    <asp:Literal runat="server" ID="ExecutingActivityName" />
                </td>
                <td nowrap="nowrap">
                    <asp:Literal runat="server" ID="Status" />
                </td>
                <td nowrap="nowrap">
                    <asp:LinkButton runat="server" ID="RestartButton" Text="重新启动" CommandName="Restart"
                        Visible="false" />
                    <asp:LinkButton runat="server" ID="TerminateButton" Text="终止" CommandName="Terminate"
                        Visible="false" />
                    <asp:LinkButton runat="server" ID="DeleteButton" Text="删除" CommandName="Delete" />
                    <asp:HyperLink runat="server" ID="HandoverLink" Text="工作移交" Target="_blank" Visible="false" />
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    <table cellspacing='1' cellpadding='3' width='100%'>
        <tr>
            <td align="left">
                <tunynet:Pager ID="Pager1" runat="server" CssClass="columnText" ShowTotalSummary="true" />
            </td>
        </tr>
    </table>
</asp:Content>
